﻿@* Ui层项目 - 客户端入口文件 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    Model.Output.FileNameNoExtension = "main";
    Model.Output.Extension = ".ts";
    Model.Output.RelativeRootPath = $"{service.GetClientRootPath()}/src";
}
@if (service.IsMicrofrontend()) {
@:import('./bootstrap');
    return;
}
import { bootstrapApplication } from '@@angular/platform-browser';
import { AppComponent } from './app/app.component';
import { appConfig } from './app/config/app.config';

bootstrapApplication(AppComponent, appConfig)
    .catch(err => console.error(err));